<?php
class kpModel extends CI_Model
{
     function __construct()
     {
         
        $this->load->database();
 
    }
    
    function getTahmins(){
        $this->db->where('admin',1);
        $this->db->where('onay',1);
        $ques = $this->db->get('kuponlar');
        return $ques->result();
        }
        
    function getTahminsSpec($ids){
        $this->db->where('id',$ids);
        $queq = $this->db->get('kuponlar');
        return $queq->result();
    }
    
    
    

}
?>
